package com.hbnu.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdmerMapper {
    @Select("select count(*) from admer where aid=#{aid} and password=#{password}")
    int login(String aid,String password);

    @Insert("insert into admer (aid, password) value (#{aid},#{password})")
    void register(String aid,String password);
}
